<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <style type="text/css">
        body{
            margin: 0 auto;
            width:900px;
            background-color: #CCB;
        }
        .container{
            width: 700px;
            height: 700px;
            margin: 0 auto;
        }
        img{
            width:auto;
            height:auto;
            max-width:100%;
            max-height:100%;
            padding-bottom: 36px;
        }
        span{
            display: block;
            font-size:20px;
            color:blue;
        }
    </style>
    <script th:inline="javascript">ctx = [[${ctx}]];</script>
</head>
<body>
<div class="container">
    <img th:src="${ctx}+'image/sorry.jpg'" />
    <span>
        该文件类型(<span id="file_type"></span>)系统暂时不支持在线预览，<b>说明</b>：
        <p><span id="err_msg"></span></p>
    </span>
</div>
<script th:inline="javascript">
    var file_type = [[${fileType}]];
    var err_msg = [[${msg}]];
</script>
<script>
    document.getElementById("file_type").innerHTML = file_type;
    document.getElementById("err_msg").innerHTML = err_msg;
</script>
</body>
</html>
